package com.xiangxiangjd.bean;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 申领航材批次号
 * </p>
 *
 * @author 肖守凯
 * @since 2021-11-08
 */
@TableName("handover_date_no")
@ApiModel(value="HandoverDateNo对象", description="交接航材批次号")
@Data
public class HandoverDateNo extends Model<HandoverDateNo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "申领id")
    @TableId(value = "id")
    private Integer id;

    @ApiModelProperty(value = "交接批次号")
    @TableField("handover_odd_number")
    private String handoverOddNumber;

    @ApiModelProperty(value = "申领人id （委托人）")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "状态 0 交接待确/1 拒绝交接/ 2 交接待审批 / 3交接审批通过 /4 交接审批不通过/")
    @TableField("handover_date_no_state")
    private String handoverDateNoState;

    @ApiModelProperty(value = "申领单位id（接收单位）")
    @TableField("unit_id")
    private String unitId;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    @ApiModelProperty(value = "创建日期")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private String createTime;

    @ApiModelProperty(value = "不通过原因")
    @TableField("reason_for_failure")
    private String reasonForFailure;

    @ApiModelProperty(value = "交付人（用于交接）")
    @TableField("handover_users_id")
    private String handoverUsersId;

    @ApiModelProperty(value = "交付单位（用于交接）")
    @TableField("handover_unit_id")
    private String handoverUnitId;

    @ApiModelProperty(value = "审批人")
    @TableField("handover_approval_user_id")
    private String handoverApprovalUserId;



    @ApiModelProperty(value = "交接航材")
    @TableField(exist = false)
    private List<HandoverGoods> handoverGoodsList;

    @ApiModelProperty(value = "交接人")
    @TableField(exist = false)
    private String userName;

    @ApiModelProperty(value = "交接单位")
    @TableField(exist = false)
    private String unitName;

    @ApiModelProperty(value = "接收人")
    @TableField(exist = false)
    private String handoverUsersName;

    @ApiModelProperty(value = "接收单位")
    @TableField(exist = false)
    private String handoverUnitName;





}
